package com.nbsaas.boot.app.ext.apis;

import com.nbsaas.boot.app.api.domain.request.AppUserRoleRequest;
import com.nbsaas.boot.app.api.domain.response.AppUserRoleResponse;
import com.nbsaas.boot.app.ext.domain.request.UpdateRoleRequest;
import com.nbsaas.boot.rest.response.ResponseObject;

public interface AppUserRoleExtApi {

    /**
     * 添加角色
     *
     * @param request
     * @return
     */
    ResponseObject<AppUserRoleResponse> create(AppUserRoleRequest request);


    /**
     * 更新用户角色,需要检查appId
     *
     * @param request
     * @return
     */
    ResponseObject<?> updateRole(UpdateRoleRequest request);


    /**
     * 更新用户角色
     * @param request
     * @return
     */
    ResponseObject<?> updateRoleAll(UpdateRoleRequest request);

}
